package com.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.PageUtils;
import com.guli.product.entity.AttrGroupEntity;
import com.guli.product.entity.CategoryEntity;
import com.guli.product.vo.AttrGroupWithAttrVo;
import com.guli.product.vo.SpuItemAttrGroupVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zzb
 * @email 1626131069@qq.com
 * @date 2023-10-21 10:18:56
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Long catId, Map<String, Object> params);

    AttrGroupEntity getInfoById(Long attrGroupId);

    Long[] getCategoryPath(Long catelogId, CategoryEntity categoryEntity);
    @Transactional
    void removeGroupIdsAndRelation(List<Long> ids);
    List<AttrGroupWithAttrVo> catagoryWithAttr(Long catId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

